import 'package:event_bus/event_bus.dart';
import 'package:flutter/material.dart';
import 'package:shopping_group/modle/login/entity/dv_entity.dart';
import 'package:shopping_group/modle/main/entity/commo_spec4app_record_entity.dart';
import 'package:shopping_group/modle/main/entity/id_name_entity.dart';
import 'package:shopping_group/modle/more/entity/group_detail_entity.dart';
import 'package:shopping_group/modle/more/entity/group_simple4fuli_entity.dart';
import 'package:shopping_group/modle/person/entity/cust_bankInfo_entity.dart';
import 'package:shopping_group/modle/person/entity/soujianren_entity.dart';
import 'package:shopping_group/modle/person/entity/userid_name_phone_entity.dart';
import 'package:shopping_group/modle/play/entity/after_pay_entity.dart';

/// The global [EventBus] object.
EventBus eventBus = EventBus();

class CountEvent {
//待处理数
  int disposalCount = 0;

  //进行中数
  int progressCount = 0;

  //已完成数
  int completeCount = 0;

  CountEvent(this.disposalCount, this.progressCount, this.completeCount);
}

class HideFlEven {
  String beDisplay;

  HideFlEven(
    this.beDisplay,
  );
}

class HideFlclEven {
  String beDisplay;

  HideFlclEven(
    this.beDisplay,
  );
}

class WxStartEvent {
  String url;
  String openType;
  String orderId;
  String orderName;
  WxStartEvent(
    this.url,
    this.openType,
    this.orderId,
    this.orderName,
  );
}

class BlackSjEvent {}

class RefreshFlEvent {}

class RemoveViewEvent {}

class ResetMoneyEvent {}

class MaxMoneyEvent {
  String je;

  MaxMoneyEvent(
    this.je,
  );
}

class VideoCompleteEvent {}

class AvCompleteEvent {}

class AvMoreCompleteEvent {}

class AvFlCompleteEvent {
  String groupSpecId;
  String pushId;
  String videoUrl;
  String videoFileId;

  AvFlCompleteEvent(
    this.groupSpecId,
    this.pushId,
    this.videoUrl,
    this.videoFileId,
  );
}

class VideoTimeEvent {
  String time;

  VideoTimeEvent(this.time);
}

class StartFlVideoEvent {
  String groupSpecId;
  String pushId;
  String videoUrl;
  String videoFileId;
  GroupSimple4FuliEntity entity;

  StartFlVideoEvent(
    this.groupSpecId,
    this.pushId,
    this.videoUrl,
    this.videoFileId,
    this.entity,
  );
}

class RsetLoginEvent {}

class IsZhongJiangEvent {
  String beZonJian;

  IsZhongJiangEvent(this.beZonJian);
}

class CloseEvent {}

class PlayOkEvent {}

class PlayPingtuanOkEvent {
  PlayPingtuanOkEvent();
}

class SortTilteEvent {
  String title;

  SortTilteEvent(this.title);
}

class ThemeChangeEvent {
  Color themeColor;

  ThemeChangeEvent(this.themeColor);
}

class TypeMainEvent {
  List<IdNameEntity> list = [];

  TypeMainEvent(this.list);
}

class CommoSpecEvent {
  String type;
  List<CommoSpec4AppRecordEntity> list = [];

  CommoSpecEvent(this.list, this.type);
}

class AddBandEvent {
  CustBankInfoEntity entity;

  AddBandEvent(this.entity);
}

class DetailsImageUrlEvent {
  List<String> lstImgUrl = [];

  DetailsImageUrlEvent(this.lstImgUrl);
}

class OrderPlayEvent {
  CommoSpec4AppRecordEntity entity;

  OrderPlayEvent(this.entity);
}

class GroupDetailEvent {
  GroupDetailEntity entity;

  GroupDetailEvent(this.entity);
}

class SelectOSouJianRenEvent {
  SouJianRenEntity entity;

  SelectOSouJianRenEvent(this.entity);
}

class AddSouJianRenEvent {
  SouJianRenEntity entity;

  AddSouJianRenEvent(this.entity);
}

class OneSouJianRenEvent {
  SouJianRenEntity entity;

  OneSouJianRenEvent(this.entity);
}

class ValidateNewShopEvent {
  DvEntity entity;

  ValidateNewShopEvent(this.entity);
}

class CalculNewShopEvent {
  DvEntity entity;

  CalculNewShopEvent(this.entity);
}

class ValidateShopEvent {
  String lastJoinId;

  ValidateShopEvent(this.lastJoinId);
}

class ValidateXjjEvent {
  String lastJoinId;

  ValidateXjjEvent(this.lastJoinId);
}

class ValidatePingtuanEvent {
  String lastJoinId;

  ValidatePingtuanEvent(this.lastJoinId);
}

class ValidateYjEvent {
  String lastJoinId;

  ValidateYjEvent(this.lastJoinId);
}

class ZfbShopEvent {}

class BlackEvent {}

class JiesuoOkEvent {}

class BlackForumEvent {}

class BlackMoreEvent {}

class MoreStBlackEvent {
  String canDoAction;
  String custGroupSpecRelaId;
  String reBuyImgUrl;

  MoreStBlackEvent(
      this.canDoAction, this.custGroupSpecRelaId, this.reBuyImgUrl);
}

class LastJoinIdEvent {
  String lastJoinId;

  LastJoinIdEvent(this.lastJoinId);
}

class BlackIssueEvent {}

class BlackPageEvent {}

class ProgressEvent {
  int progress;

  ProgressEvent(this.progress);
}

class UdateVersionEvent {
  String version;
  String installUrl;
  String apkName;

  UdateVersionEvent(this.version, this.installUrl, this.apkName);
}

class UdateVersion2Event {}

class NewVersionEvent {
  String version;
  String installUrl;
  String apkName;

  NewVersionEvent(this.version, this.installUrl, this.apkName);
}

class ToChangePageEvent {}

class ClearIssueDataEvent {}

class DetailsDataEvent {}

class DetailsAutoAddEvent {
  String autoBuyTopOffer;

  DetailsAutoAddEvent(this.autoBuyTopOffer);
}

class SaveAddressEvent {}

class SaveBankEvent {}

class AddYjfbEvent {}

class ChangeBankEvent {}

class MoneyEvent {}

class ChangeBankParmEvent {
  String id;
  String name;
  String bankTypeName;
  String bankNo;
  String bankMobile;

  ChangeBankParmEvent(
      this.id, this.name, this.bankTypeName, this.bankNo, this.bankMobile);
}

class SelectAddressEvent {
  String id;
  String name;
  String provName;
  String cityName;
  String distName;
  String address;
  String handPhone;
  String phone;

  SelectAddressEvent(this.id, this.name, this.provName, this.cityName,
      this.distName, this.address, this.handPhone, this.phone);
}

class DealtPayEvent {}

class RefreshForumEvent {}

class RefreshDealtEvent {
  String acuId;

  RefreshDealtEvent(this.acuId);
}

class RefreshSubEvent {
  String acuId;

  RefreshSubEvent(this.acuId);
}

class RefreshOrderEvent {
  String id;

  RefreshOrderEvent(this.id);
}

class RefreshDoorEvent {
  String acuId;

  RefreshDoorEvent(this.acuId);
}

class RefreshSubmitEvent {
  String acuId;

  RefreshSubmitEvent(this.acuId);
}

class RefreshJuBaoEvent {
  String acuId;

  RefreshJuBaoEvent(this.acuId);
}

class GetWxCodeUrlEvent {
  String codeUrl;

  GetWxCodeUrlEvent(this.codeUrl);
}

class GetWxOpenIdEvent {
  var result;
  String shopId;
  GetWxOpenIdEvent(this.result, this.shopId);
}

class RefreshEvent {}

class XiYuMoreCloseEvent {}

class XiYuAvCloseEvent {}

class SumValueEvent {
  String sum;

  SumValueEvent(this.sum);
}

class ZfbStartEvent {
  AfterPayEntity parm;

  ZfbStartEvent(this.parm);
}

class ZfbPingtuanStartEvent {
  String id = "";
  String name = "";
  String price = "";
  String joinId = "";

  ZfbPingtuanStartEvent(this.id, this.name, this.price, this.joinId);
}

class ZfbCallbackEvent {
  String id;

  ZfbCallbackEvent(this.id);
}

class ZfbCompeteEvent {}

class ZfbPingtuanCompeteEvent {
  ZfbPingtuanCompeteEvent();
}

class YjCompeteEvent {}

class VideoCloseEvent {}

class UpTuanyouListEvent {
  List<UserIdNamePhoneEntity> list;

  UpTuanyouListEvent(this.list);
}

class DownTuanyouListEvent {
  List<UserIdNamePhoneEntity> list;

  DownTuanyouListEvent(this.list);
}

class ZfbHtmlEvent {
  String isZf;

  ZfbHtmlEvent(this.isZf);
}

class ZfbHtmlCloseEvent {
  String isZf;

  ZfbHtmlCloseEvent(this.isZf);
}
